package com.zhss.eshop.wms.service;

import com.zhss.eshop.wms.domain.dto.WmsPurchaseInputOrderDTO;
import com.zhss.eshop.wms.domain.model.WmsPurchaseInputOrder;
public interface WmsPurchaseInputOrderService{


    int deleteByPrimaryKey(Long id);

    int insertSelective(WmsPurchaseInputOrder record);

    WmsPurchaseInputOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WmsPurchaseInputOrder record);

    /**
     * 对采购入库单提交审核`
     * @param id 采购入库单id
     * @throws Exception
     */
    void submitApprove(Long id) throws Exception;

    /**
     * 审核采购入库单`
     * @param id 采购入库单id
     * @param approveResult 审核结果
     * @throws Exception
     */
    void approve(Long id, Integer approveResult) throws Exception;

    /**
     * 更新采购入库单状态
     * @param id 采购入库单id
     * @param status 采购入库单状态
     * @throws Exception
     */
    void updateStatus(Long id, Integer status) throws Exception;
    /**
     * 根据id查询采购入库单
     * @param id 采购入库单id
     * @return 采购入库单
     * @throws Exception
     */
    WmsPurchaseInputOrderDTO getById(Long id) throws Exception;
}
